class WljyxxesController < ApplicationController
  before_action :set_wljyxx, only: [:show, :edit, :update, :destroy]

  # GET /wljyxxes
  # GET /wljyxxes.json
  def index
    @wljyxxes = Wljyxx.all
  end

  # GET /wljyxxes/1
  # GET /wljyxxes/1.json
  def show
  end

  # GET /wljyxxes/new
  def new
    @wljyxx = Wljyxx.new
  end

  # GET /wljyxxes/1/edit
  def edit
  end

  # POST /wljyxxes
  # POST /wljyxxes.json
  def create
    @wljyxx = Wljyxx.new(wljyxx_params)

    respond_to do |format|
      if @wljyxx.save
        format.html { redirect_to @wljyxx, notice: 'Wljyxx was successfully created.' }
        format.json { render :show, status: :created, location: @wljyxx }
      else
        format.html { render :new }
        format.json { render json: @wljyxx.errors, status: :unprocessable_entity }
      end
    end
  end

  # PATCH/PUT /wljyxxes/1
  # PATCH/PUT /wljyxxes/1.json
  def update
    respond_to do |format|
      if @wljyxx.update(wljyxx_params)
        format.html { redirect_to @wljyxx, notice: 'Wljyxx was successfully updated.' }
        format.json { render :show, status: :ok, location: @wljyxx }
      else
        format.html { render :edit }
        format.json { render json: @wljyxx.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /wljyxxes/1
  # DELETE /wljyxxes/1.json
  def destroy
    @wljyxx.destroy
    respond_to do |format|
      format.html { redirect_to wljyxxes_url }
      format.json { head :no_content }
    end
  end

  private
    # Use callbacks to share common setup or constraints between actions.
    def set_wljyxx
      @wljyxx = Wljyxx.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def wljyxx_params
      params.require(:wljyxx).permit(:BT, :SSDQ, :XXNR, :LXR, :QQ, :EMAIL, :LXDH, :CSRQ, :SG, :HYZK, :XL, :YSR, :ZY, :XXLY, :XXFBSJ, :WZ, :SJCJDW, :SJCJDWDM, :BZ)
    end
end
